package com.wangp.mywrite.inwork.mybatis.handler;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/***
 * @author wangpeng
 * @since 2022-02-17  16:00
 */
@Mapper
public interface FarMapper {

    @Select("select * from t_far where id = 1")
    Far selectById();

    @Insert("INSERT INTO `t_far`(`bar`) VALUES ('{\"name\":\"mxr\",\"num\":123}');")
    Integer insertFar();
}
